< previous page page_571 next page >

Page 571
This command opens a table in a Jet database, with the default parameters of shared use and read/write mode. You can include optional parameters in the OpenRecordset method to open the table for exclusive use or to open the table in read-only mode. These options are summarized in Table 26.1.
note.gif When you specify the name of an existing table in the OpenRecordset method, the Jet engine creates a table-type recordset by default. square.gif

Table 26.1 Options Used to Modify the Access Mode of Tables
OptionAction
dbDenyWritePrevents others in a multiuser environment from writing to the table while you have it open
dbDenyReadPrevents others in a multiuser environment from reading the table while you have it open
dbReadOnlyPrevents you from making changes to the table

Using Dynasets
A dynaset is a grouping of information from one or more tables in a database. This information is composed of selected fields from the tables, often presented in a specific order and filtered by a specific condition. Dynasets address the records present in the base tables at the time the dynaset was created. Dynasets are updateable recordsets, so any changes made by the users are stored in the database. However, dynasets do not automatically reflect additions or deletions of records made by other users or programs after the dynaset was created. Therefore, dynasets are less useful for some types of multiuser applications.
A dynaset is actually a set of record pointers that point to the specified data as it existed when the dynaset was created. Changes made to information in the dynaset are reflected in the base tables from which the information was derived, as well as in the dynaset itself. These changes include additions, edits, and deletions of records.
Advantages of Using Dynasets
Some of the advantages provided by dynasets are as follows:
Dynasets enable you to join information from multiple tables.
You can use Find methods to locate or process every record meeting specified criteria.
Dynasets enable you to limit the number of fields or records that you retrieve into the recordset.
Dynasets make use of filters and sort order properties to change the view of data.
Disadvantages of Using Dynasets
Dynasets do have some limitations:
You can't use indexes with dynasets; therefore, you can't change the presentation order of a dynaset by changing the index or by creating a new one.

 
< previous page page_571 next page >